package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Online_source  implements Serializable {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "网课序列号")
    private Integer srId;
    @ApiModelProperty(value = "网课主题")
    private String topic;
    @ApiModelProperty(value = "网课描述")
    private String description;
    @ApiModelProperty(value = "网课地址")
    private String address;
    @ApiModelProperty(value = "网课状态",hidden = true)
    private int state;
    @ApiModelProperty(hidden = true)
    @TableLogic
    private Integer deleted;

    public Online_source(String topic,String description){
        this.topic = topic;
        this.description = description;
    }
}
